package com.spring.sperapc.web.service;

import com.spring.security.web.model.User;
import com.spring.sperapc.web.model.Family;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * Created by wojunyu on 2015/8/12.
 */
public interface UserFamilyService {
    int deleteByPrimaryKey(@Param(value="id") String id);

    int insertSelective(Family record,User u);

    Family selectByPrimaryKey(Map m);

    int updateByPrimaryKeySelective(Family record);
    
    Map<String, Object> getBabyByParent(String token) throws Exception;
    
    Map<String, Object> getBabyByParentId(String c_user_id) throws Exception;
    
    Map<String, Object> getRoleList() throws Exception;
}
